200
|
Disables the control
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Series->Add(TVariant(String("<img>1</img>Asia(4600),<img>2</img>Africa(1300),<img>3</img>Europe(747),<img>4</img>North America(579),<img>5</img>South Americ") +
"a(433),<img>6</img>Australia/Oceania(42)"),TNoParam());
Graph1->Enabled = false;
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
199
|
Show icons
Graph1->BeginUpdate();
Graph1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Graph1->AutoFit = true;
Graph1->Series->Add(TVariant(String("<img>1</img>Asia(4600),<img>2</img>Africa(1300),<img>3</img>Europe(747),<img>4</img>North America(579),<img>5</img>South Americ") +
"a(433),<img>6</img>Australia/Oceania(42)"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
198
|
Displays the control's version
OutputDebugString( Graph1->Version );
|
197
|
Changes the control's border (EBN)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Graph1->Appearance = Exgraphlib_tlb::AppearanceEnum(0x1000000);
Graph1->Series->Add(TVariant("Asia(4600),Africa(1300),Europe(747),North America(579),South America(433),Australia/Oceania(42)"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
196
|
Changes the control's border
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Appearance = Exgraphlib_tlb::AppearanceEnum::Flat;
Graph1->Series->Add(TVariant("Asia(4600),Africa(1300),Europe(747),North America(579),South America(433),Australia/Oceania(42)"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
195
|
Display the logo on the control's background
Graph1->BeginUpdate();
Graph1->Picture = (IPictureDisp*)(Graph1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\card.png`)"));
Graph1->PictureDisplay = Exgraphlib_tlb::PictureDisplayEnum::UpperRight;
Graph1->AutoFit = true;
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
194
|
Changes the control's font
Graph1->BeginUpdate();
/*
Select the Component\Import Component...\Import a Type Library,
to import the following Type Library:
OLE Automation
TypeLib: stdole2.tlb
to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr var_StdFont = Graph1->Font;
var_StdFont->Name = L"Tahoma";
var_StdFont->Size = TVariant(long(12));
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
var_Serie->Type = L"Pie";
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + (percent format ``) + `%`";
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
193
|
Shows the value-scroll (vertical scroll bar for area-compatible chart types)
Graph1->BeginUpdate();
Graph1->ValueSize = 8;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exAllowValueScroll] = TVariant(1.5);
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"msft";
var_Serie->set_Data(TVariant("Open,High,Low,Close"));
var_Serie->Type = L"candle";
Graph1->EndUpdate();
|
192
|
No values are shown
Graph1->BeginUpdate();
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exShowValueIf] = TVariant(0);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + value";
Graph1->EndUpdate();
|
191
|
No labels on category-axis are shown
Graph1->BeginUpdate();
Graph1->ValueSize = 15;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exShowLabelsIf] = TVariant(0);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Date"));
var_CategoryAxis->Format = L"value mid 9 left 2";
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"msft";
var_Serie->set_Data(TVariant("Open,High,Low,Close"));
var_Serie->Type = L"candle";
Graph1->EndUpdate();
|
190
|
No category grid lins are shown
Graph1->BeginUpdate();
Graph1->ValueSize = 8;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exShowGridLinesIf] = TVariant(0);
Graph1->CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"msft";
var_Serie->set_Data(TVariant("Open,High,Low,Close"));
var_Serie->Type = L"candle";
Graph1->EndUpdate();
|
189
|
No category ticks are shown
Graph1->BeginUpdate();
Graph1->ValueSize = 8;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exShowTicksIf] = TVariant(0);
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"msft";
var_Serie->set_Data(TVariant("Open,High,Low,Close"));
var_Serie->Type = L"candle";
Graph1->EndUpdate();
|
188
|
Defines the lower and upper margins of the valueSize property (CTRL + Middle button and drag to resize the values)
Graph1->BeginUpdate();
Graph1->ValueSize = 8;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueSizeRange] = TVariant("1,12");
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"msft";
var_Serie->set_Data(TVariant("Open,High,Low,Close"));
var_Serie->Type = L"candle";
Graph1->EndUpdate();
|
187
|
Even though I set the AutoFit property to False, the control still gets resized when I click CTRL + Middle button
Graph1->BeginUpdate();
Graph1->ValueSize = 8;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueSizeRange] = TVariant("0,8");
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->EndUpdate();
|
186
|
Defines the angle (in degrees) the value-line is rotated by, when the values goes up(positive) or down(negative)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueLineUpAngle] = TVariant(0);
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueLineDownAngle] = TVariant(90);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Green,Black,Red,Lime,Orange,Red"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,331,-1390,-276,1225,213"),TNoParam());
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + (value format ``)";
var_Serie->Type = L"line";
Graph1->EndUpdate();
|
185
|
Defines the additional angle (in degrees) the value-line is rotated by
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueLineAddAngle] = TVariant(0);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + (percent format ``) + `%`";
Graph1->EndUpdate();
|
184
|
Defines the distance to extend the value-line by
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueLineExt] = TVariant(12);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + value";
Graph1->EndUpdate();
|
183
|
Defines the distance from the edge of the outer circle where the values are displayed
Graph1->BeginUpdate();
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueDistOuterCircular] = TVariant(0);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
var_Serie->Type = L"Pie";
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + (percent format ``) + `%`";
Graph1->ValuePoint = L",,,,,,,red,black,2";
Graph1->EndUpdate();
|
182
|
Defines the distance from the edge of the inner circle where the values are displayed
Graph1->BeginUpdate();
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueDistInnerCircular] = TVariant(8);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
var_Serie->Type = L"Pie";
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + (percent format ``) + `%`";
Graph1->EndUpdate();
|
181
|
Defines the padding between rings of the "pie" chart-type
Graph1->BeginUpdate();
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exPaddingInsidePie] = TVariant(12);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
var_Serie->Type = L"Pie";
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + (percent format ``) + `%`";
Exgraphlib_tlb::ISeriePtr var_Serie1 = Graph1->Series->Add(TVariant("141,139,331,276,225,213"),TNoParam());
var_Serie1->Type = L"Pie";
var_Serie1->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie1->ValueFormat = L"`<c>` + category + `<br><c>` + (percent format ``) + `%`";
Graph1->EndUpdate();
|
180
|
Requests for a new layout once the serie's visible property is changed
Graph1->BeginUpdate();
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exNewLayoutOnVisibleChange] = TVariant(false);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
var_Serie->Type = L"Pie";
var_Serie->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
var_Serie->ValueFormat = L"`<c>` + category + `<br><c>` + (percent format ``) + `%`";
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
179
|
Prevents rotating the labels
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exRadialRotateLabels] = TVariant(false);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam())->Type = L"radarColumn";
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
178
|
Defines the angle (in degrees) to start the circular-compatible charts (radial or pie)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exCircularStartAngle] = TVariant(0);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam())->Type = L"radarColumn";
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
177
|
Defines polygonal instead of circular
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exRadarPolygonal] = TVariant(true);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam())->Type = L"radarColumn";
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
176
|
Defines the distance (proportionally with the valueSize property) between the first, next and last value of the same category and its border
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exMarginValueRatio] = TVariant(0.5);
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exPaddingValueRatio] = TVariant(0.5);
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->Series->Add(TVariant("9900,3300,980,190,90,8"),TNoParam());
Graph1->EndUpdate();
|
175
|
Ensures that the marginal labels of the value-axis ensure fit the axis's client-rectangle
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueAxisFitLabel] = TVariant(true);
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
174
|
Prevents updating the margins/minimum/maximum of the value-axis when the user scrolls the data
Graph1->BeginUpdate();
Graph1->ValueSize = 6;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exUpdateRangeOnScroll] = TVariant(0);
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->set_Data(TVariant("Volume"));
var_Serie->Type = L"candle";
Graph1->EndUpdate();
|
173
|
Defines the padding for labels and title of the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueAxisPad] = TVariant(16);
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
172
|
Defines the size (height for horizontal axis and width for vertical axis) to display the category-axis (line and ticks)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exValueAxisSize] = TVariant(16);
Graph1->ValueAxis->OffsetLabel = L"16,16";
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
171
|
Defines the padding for labels and title of the category-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exCategoryAxisPad] = TVariant(16);
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
170
|
Defines the size (height for horizontal axis and width for vertical axis) to display the category-axis (line and ticks)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exCategoryAxisSize] = TVariant(16);
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
var_CategoryAxis->OffsetLabel = L"0,-16";
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
169
|
Defines the minimum/maximum portion (as a proportion of major unit, as a numeric-value between 0 and 1) to extend the axis before the first/after the last value of the serie (minimum, maximum value)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::extVisibleBeforeAxis] = TVariant(1);
Graph1->Misc[Exgraphlib_tlb::MiscEnum::extVisibleAfterAxis] = TVariant(1);
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
168
|
Defines the number of digits to appear after the decimal point (as it is)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exDigits] = TVariant(-1);
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410.1211,1390.8999,331.3421,276.8991,225.0023,213.2231"),TNoParam())->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
167
|
Defines the number of digits to appear after the decimal point
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exDigits] = TVariant(3);
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410.1211,1390.8999,331.3421,276.8991,225.0023,213.2231"),TNoParam())->ShowValue = Exgraphlib_tlb::ShowValueEnum::exValue | Exgraphlib_tlb::ShowValueEnum::exLine | Exgraphlib_tlb::ShowValueEnum::exPoint;
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
166
|
Defines the inferior and superior limits of the number of major-unit intervals an axis can display
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exRangeMajorUnits] = TVariant("2");
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
165
|
Defines the base major-units alternatives (separated by comma) the control uses to calculate the major-unit for the axes
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Misc[Exgraphlib_tlb::MiscEnum::exBaseMajorUnits] = TVariant("5");
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
164
|
Customizes the tooltips to show on category-axis, when the crosshair intersects the category-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = Graph1->ValueAxis;
var_ValueAxis->Format = L"value + `°`";
var_ValueAxis->CursorFormat = L"``";
Graph1->CategoryAxis->CursorFormat = L"`<b><fgcolor F0F0F0> ` + value + ` `";
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"));
var_Serie->Type = L"RangeColumn";
var_Serie->CursorFormat = L"%V0 +`° - ` + %V1 + `°`";
Graph1->set_SeriesColors(TVariant("green"));
Exgraphlib_tlb::IExCursorPtr var_Cursor = Graph1->Cursor;
var_Cursor->Visible = true;
var_Cursor->set_SerieTooltipBackColor(TVariant("black"));
var_Cursor->set_SerieTooltipForeColor(TVariant("rgb(254,254,254)"));
var_Cursor->set_TooltipPad(TVariant(4));
var_Cursor->ShowCursorValueLine = false;
Graph1->EndUpdate();
|
163
|
Defines the configuration options to show the grid lines and labels between for the overview panel
Graph1->BeginUpdate();
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = Graph1->ValueAxis;
var_ValueAxis->Format = L"value / 1000000";
var_ValueAxis->set_MajorUnit(TVariant(50000000));
Exgraphlib_tlb::IFormatGridLinesOptionsPtr var_FormatGridLinesOptions = Graph1->CategoryAxis->OverviewGridLines;
var_FormatGridLinesOptions->Format = L"`<fgcolor red><b>` + (value left 4)";
var_FormatGridLinesOptions->set_Color(TVariant("red"));
var_FormatGridLinesOptions->Style = 1;
var_FormatGridLinesOptions->Width = 2;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv"));
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->Series->Add(TVariant("Volume"),TNoParam());
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
162
|
Add additional grid-lines for categories
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::IFormatGridLinesOptionsPtr var_FormatGridLinesOptions = var_CategoryAxis->ChartGridLines;
var_FormatGridLinesOptions->Format = L"value = `Pakistan`";
var_FormatGridLinesOptions->Align = Exgraphlib_tlb::DrawTextFormatEnum::exTextCalcRect;
var_FormatGridLinesOptions->Width = 2;
var_FormatGridLinesOptions->set_Color(TVariant("black"));
var_FormatGridLinesOptions->Skip = 1;
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("lime"));
Graph1->EndUpdate();
|
161
|
Add grid-lines for categories
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("lime"));
Graph1->EndUpdate();
|
160
|
Shifts horizontally or vertically the labels relative to their original positions
Graph1->BeginUpdate();
Graph1->ValueSize = 48;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
var_CategoryAxis->OffsetLabel = L"0,-22";
var_CategoryAxis->Tfi = L"<fgcolor red> bold";
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("lime"));
Graph1->EndUpdate();
|
159
|
Combines/Merges categories sharing consecutive names according to the Format property
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->CategoryAxis->Visible = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxes->Add(TVariant("Winter,Winter,Spring,Spring,Spring,Summer,Summer,Summer,Autumn,Autumn,Autumn,Winter"),TNoParam());
var_CategoryAxis->Format = L"value";
var_CategoryAxis->Split = true;
var_CategoryAxis->MajorGridLines->set_Color(TVariant("black"));
Graph1->ValueAxis->Format = L"value + `°`";
Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"))->Type = L"RangeColumn";
Graph1->set_SeriesColors(TVariant("lime"));
Graph1->EndUpdate();
|
158
|
Combines/Merges categories sharing consecutive names according to the Format property
Graph1->BeginUpdate();
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/msft.csv"));
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Date"));
var_CategoryAxis->Format = L"dateS(value left 7) format `MMM`";
var_CategoryAxis->Split = true;
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"msft";
var_Serie->set_Data(TVariant("Open,High,Low,Close"));
var_Serie->Type = L"candle";
Graph1->EndUpdate();
|
157
|
Defines the category-axis's background color
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->CategoryAxis->Visible = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxes->Add(TVariant("Winter,Winter,Spring,Spring,Spring,Summer,Summer,Summer,Autumn,Autumn,Autumn,Winter"),TNoParam());
var_CategoryAxis->Format = L"value";
var_CategoryAxis->Split = true;
var_CategoryAxis->Tfi = L"bold";
var_CategoryAxis->set_Color(TVariant(14474460));
Graph1->ValueAxis->Format = L"value + `°`";
Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"))->Type = L"RangeColumn";
Graph1->Series->Add(TVariant(String("Jan(-4 2), Feb(-3 4), Mar(1 10), Apr(5 16), May(10 21), Jun(13 25), Jul(15 28), Aug(14 27), Sep(10 22), Oct(5 15), Nov(0 7), De") +
"c(-3 3)"),TVariant("Romania"))->Type = L"RangeColumn";
Exgraphlib_tlb::ILegendPtr var_Legend = Graph1->Legend;
var_Legend->Visible = true;
var_Legend->Dock = Exgraphlib_tlb::PanelDockEnum::exLeft;
Graph1->EndUpdate();
|
156
|
Defines the color, size, style, skip and step configuration options of the major ticks to be shown on the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Format = L"value + `°`";
Exgraphlib_tlb::ITickOptionsPtr var_TickOptions = Graph1->CategoryAxis->MajorTicks;
var_TickOptions->set_Color(TVariant("red"));
var_TickOptions->Width = 4;
var_TickOptions->Style = 0;
var_TickOptions->Skip = 3;
var_TickOptions->Step = 2;
Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"))->Type = L"RangeColumn";
Graph1->set_SeriesColors(TVariant("green"));
Graph1->EndUpdate();
|
155
|
Defines the color, size, style, skip and step configuration options of the major grid-lines to be shown by the value-axis on the chart panel
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Format = L"value + `°`";
Exgraphlib_tlb::IGridLinesOptionsPtr var_GridLinesOptions = Graph1->CategoryAxis->MajorGridLines;
var_GridLinesOptions->set_Color(TVariant("red"));
var_GridLinesOptions->Width = 4;
var_GridLinesOptions->Style = 0;
var_GridLinesOptions->Skip = 3;
var_GridLinesOptions->Step = 2;
Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"))->Type = L"RangeColumn";
Graph1->set_SeriesColors(TVariant("green"));
Graph1->EndUpdate();
|
154
|
Defines the color, size and style to display the line of the category-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Format = L"value + `°`";
Exgraphlib_tlb::ILineOptionsPtr var_LineOptions = Graph1->CategoryAxis->AxisLine;
var_LineOptions->set_Color(TVariant("red"));
var_LineOptions->Width = 2;
var_LineOptions->Style = 0;
Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"))->Type = L"RangeColumn";
Graph1->set_SeriesColors(TVariant("green"));
Graph1->EndUpdate();
|
153
|
Specifies the rotation angle (in degrees) for the title and labels of the category-axis, in 'labels,title' format
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Format = L"value + `°`";
Graph1->CategoryAxis->Angle = L"-90";
Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"))->Type = L"RangeColumn";
Graph1->set_SeriesColors(TVariant("green"));
Graph1->EndUpdate();
|
152
|
Defines the title of the category-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Format = L"value + `°`";
Graph1->CategoryAxis->Title = L"<b>Range-Temperature";
Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"))->Type = L"RangeColumn";
Graph1->set_SeriesColors(TVariant("green"));
Graph1->EndUpdate();
|
151
|
Changes the font attributes to apply on the title and labels of the category-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
var_CategoryAxis->Tfi = L"<fgcolor red> Tahoma 7 bold";
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
150
|
Defines the direction of the category axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
var_CategoryAxis->Reverse = true;
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
149
|
Aligns the category-axis to bottom/right or top/left side of the view
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
var_CategoryAxis->Align = Exgraphlib_tlb::AlignEnum::exAlignLeft;
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
148
|
Hides the category axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
var_CategoryAxis->Visible = false;
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
147
|
Customizes the labels to show on category axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
var_CategoryAxis->Format = L"(index < 2 ? `<b>` : `<fgcolor gray>`) + value";
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
146
|
Defines the categories (method 2)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Series->Add(TVariant(String("China(1410),India(1390),United States(331),Indonesia(276),Pakistan(225),Brazil(213),Nigeria(211),Bangladesh(166),Russia(145),Me") +
"xico(130)"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
145
|
Defines the categories (method 1)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->CategoryAxis->set_Categories(TVariant("China,India,United States,Indonesia,Pakistan,Brazil,Nigeria,Bangladesh,Russia,Mexico"));
Graph1->Series->Add(TVariant("1410,1390,331,276,225,213,211,166,145,130"),TNoParam());
Graph1->set_SeriesColors(TVariant("blue"));
Graph1->EndUpdate();
|
144
|
Adds multiple category-axes
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxes->Add(TVariant("Winter,Winter,Spring,Spring,Spring,Summer,Summer,Summer,Autumn,Autumn,Autumn,Winter"),TNoParam());
var_CategoryAxis->Format = L"value";
var_CategoryAxis->Split = true;
var_CategoryAxis->Tfi = L"bold";
var_CategoryAxis->MajorGridLines->set_Color(TVariant("black"));
Graph1->ValueAxis->Format = L"value + `°`";
Graph1->Series->Add(TVariant(String("Jan(5 15), Feb(6 16), Mar(8 18), Apr(10 20), May(13 23), Jun(17 28), Jul(20 32), Aug(20 32), Sep(18 28), Oct(14 23), Nov(9 17),") +
" Dec(6 15)"),TVariant("Spain"))->Type = L"RangeColumn";
Graph1->Series->Add(TVariant(String("Jan(-4 2), Feb(-3 4), Mar(1 10), Apr(5 16), May(10 21), Jun(13 25), Jul(15 28), Aug(14 27), Sep(10 22), Oct(5 15), Nov(0 7), De") +
"c(-3 3)"),TVariant("Romania"))->Type = L"RangeColumn";
Exgraphlib_tlb::ILegendPtr var_Legend = Graph1->Legend;
var_Legend->Visible = true;
var_Legend->Dock = Exgraphlib_tlb::PanelDockEnum::exLeft;
Graph1->EndUpdate();
|
143
|
Redefines the major-unit of the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->set_MajorUnit(TVariant(1000));
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
142
|
Redefines the margins/limits of the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = Graph1->ValueAxis;
var_ValueAxis->set_Min(TVariant(-100));
var_ValueAxis->set_Max(TVariant(6000));
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
141
|
Defines the start/end position of the value-axis (relative to full axis)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxesPtr var_ValueAxes = Graph1->ValueAxes;
var_ValueAxes->Add(TVariant("p"))->set_End(TVariant(0.75));
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add(TVariant("a"));
var_ValueAxis->set_End(TVariant(0.25));
var_ValueAxis->Visible = false;
var_ValueAxis->set_ColorChart(TVariant(16119285));
var_ValueAxis->Reverse = true;
var_ValueAxis->MajorGridLines->Width = 0;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Axis = L"p";
var_Serie->Type = L"Line";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Exgraphlib_tlb::ISeriePtr var_Serie1 = var_Series->Add(TVariant("4458,3037,1018,2470,1784,1018,856"),TNoParam());
var_Serie1->Name = L"Area";
var_Serie1->Axis = L"a";
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
140
|
Customizes the tooltips to show on value-axis, when the crosshair hovers the chart
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = Graph1->ValueAxis;
var_ValueAxis->Format = L"value format `0`";
var_ValueAxis->CursorFormat = L"value format `0`";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->Cursor->Visible = true;
Graph1->EndUpdate();
|
139
|
Hides the tooltip that's shown over the value-axis, while cursor hovers the serie
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->CursorFormat = L"``";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->Cursor->Visible = true;
Graph1->EndUpdate();
|
138
|
Shifts horizontally or vertically the labels relative to their original positions
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->OffsetLabel = L"4,8";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
137
|
Defines the color to apply on the chart's background right to the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->set_ColorChart(TVariant("red"));
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
136
|
Changes the value-axis's background color
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->set_Color(TVariant("red"));
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
135
|
Defines the color, size, style, skip and step configuration options of the major grid-lines to be shown by the value-axis on the chart panel
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IGridLinesOptionsPtr var_GridLinesOptions = Graph1->ValueAxis->MajorGridLines;
var_GridLinesOptions->set_Color(TVariant("red"));
var_GridLinesOptions->Width = 4;
var_GridLinesOptions->Style = 0;
var_GridLinesOptions->Skip = 3;
var_GridLinesOptions->Step = 2;
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
134
|
Defines the color, size, style, skip and step configuration options of the major ticks to be shown on the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ITickOptionsPtr var_TickOptions = Graph1->ValueAxis->MajorTicks;
var_TickOptions->set_Color(TVariant("red"));
var_TickOptions->Width = 4;
var_TickOptions->Style = 0;
var_TickOptions->Skip = 3;
var_TickOptions->Step = 2;
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
133
|
Defines the color, size and style to display the line of the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::ILineOptionsPtr var_LineOptions = Graph1->ValueAxis->AxisLine;
var_LineOptions->set_Color(TVariant("red"));
var_LineOptions->Width = 2;
var_LineOptions->Style = 0;
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
132
|
Converts the serie's values to [0,1] range, as percentages (the values area always numbers between 0 and 1)
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = Graph1->ValueAxis;
var_ValueAxis->AsPercent = true;
var_ValueAxis->Format = L"value * 100 + `%`";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
131
|
Defines the rotation angle (in degrees) for the title and labels of the axis, in 'labels,title' format
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = Graph1->ValueAxis;
var_ValueAxis->Angle = L"-90,-90";
var_ValueAxis->Title = L"<b>mil";
var_ValueAxis->Format = L"value ? value format `0` : ``";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
130
|
Defines the title of the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Title = L"<b>mil";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
129
|
Specifies the font attributes to apply on the title and labels of the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Tfi = L"<fgcolor red> Tahoma 10 bold";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
128
|
Defines the direction of the value axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Reverse = true;
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
127
|
Aligns the value-axis to bottom/right or top/left side of the view
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Align = Exgraphlib_tlb::AlignEnum::exAlignRight;
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
126
|
Customizes the labels of the value axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Format = L"value ? `<c><b>` + (value format `0`) + `</b><br><c><fgcolor lightgray>mil` : ``";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
125
|
Customizes the labels of the value axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Format = L"value ? (value format `0`) + ` mil` : ``";
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
124
|
Hides the value-axis
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->ValueAxis->Visible = false;
Graph1->CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Graph1->EndUpdate();
|
123
|
Changes the position of value-axis (click to change the value-axis's position)
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void __fastcall TForm1::Graph1Click(TObject *Sender)
{
Graph1->ValueAxes->get_Item(TVariant("a"))->Position = 0;
}
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxesPtr var_ValueAxes = Graph1->ValueAxes;
var_ValueAxes->Add(TVariant("p"));
var_ValueAxes->Add(TVariant("a"))->set_Color(TVariant("teal"));
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Axis = L"p";
var_Serie->Type = L"Line";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Exgraphlib_tlb::ISeriePtr var_Serie1 = var_Series->Add(TVariant("4458,3037,1018,2470,1784,1018,856"),TNoParam());
var_Serie1->Name = L"Area";
var_Serie1->Axis = L"a";
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
122
|
Access the value-axis giving its name (click to change the value-axis's background)
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void __fastcall TForm1::Graph1Click(TObject *Sender)
{
Graph1->ValueAxes->get_Item(TVariant("a"))->set_ColorChart(TVariant(16119285));
Graph1->Refresh();
}
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxesPtr var_ValueAxes = Graph1->ValueAxes;
var_ValueAxes->Add(TVariant("p"))->set_Start(TVariant(0.25));
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add(TVariant("a"));
var_ValueAxis->set_End(TVariant(0.25));
var_ValueAxis->Visible = false;
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Axis = L"p";
var_Serie->Type = L"Line";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Exgraphlib_tlb::ISeriePtr var_Serie1 = var_Series->Add(TVariant("4458,3037,1018,2470,1784,1018,856"),TNoParam());
var_Serie1->Name = L"Area";
var_Serie1->Axis = L"a";
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
121
|
Specifies the name of the value axis to use
Graph1->BeginUpdate();
Graph1->ValueSize = 18;
Exgraphlib_tlb::IValueAxesPtr var_ValueAxes = Graph1->ValueAxes;
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add(TVariant("pop-ax"));
var_ValueAxis->Name = L"pop-ax";
var_ValueAxis->set_Start(TVariant(0.25));
var_ValueAxis->Align = Exgraphlib_tlb::AlignEnum::exAlignLeft;
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis1 = var_ValueAxes->Add(TVariant("area-ax"));
var_ValueAxis1->Name = L"area-ax";
var_ValueAxis1->set_End(TVariant(0.25));
var_ValueAxis1->Visible = false;
var_ValueAxis1->set_ColorChart(TVariant(16119285));
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Axis = L"pop-ax";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
var_Serie->Vertical = true;
Exgraphlib_tlb::ISeriePtr var_Serie1 = var_Series->Add(TVariant("4458,3037,1018,2470,1784,1018,856"),TNoParam());
var_Serie1->Name = L"Area";
var_Serie1->Axis = L"area-ax";
Exgraphlib_tlb::ILegendPtr var_Legend = Graph1->Legend;
var_Legend->Visible = true;
var_Legend->Dock = Exgraphlib_tlb::PanelDockEnum::exLeft;
var_Legend->Align = Exgraphlib_tlb::LegendAlignEnum::exStart;
Graph1->EndUpdate();
|
120
|
Remove a value-axis (click to remove the first value-axis)
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void __fastcall TForm1::Graph1Click(TObject *Sender)
{
Graph1->ValueAxes->Remove(TVariant(0));
}
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxesPtr var_ValueAxes = Graph1->ValueAxes;
var_ValueAxes->Add(TVariant("p"))->set_Start(TVariant(0.25));
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add(TVariant("a"));
var_ValueAxis->set_End(TVariant(0.25));
var_ValueAxis->Visible = false;
var_ValueAxis->set_ColorChart(TVariant(16119285));
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Axis = L"p";
var_Serie->Type = L"Line";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Exgraphlib_tlb::ISeriePtr var_Serie1 = var_Series->Add(TVariant("4458,3037,1018,2470,1784,1018,856"),TNoParam());
var_Serie1->Name = L"Area";
var_Serie1->Axis = L"a";
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
119
|
Remove all value-axes (click to clear the value-axes)
// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void __fastcall TForm1::Graph1Click(TObject *Sender)
{
Graph1->ValueAxes->Clear();
}
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxesPtr var_ValueAxes = Graph1->ValueAxes;
var_ValueAxes->Add(TVariant("p"))->set_Start(TVariant(0.25));
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add(TVariant("a"));
var_ValueAxis->set_End(TVariant(0.25));
var_ValueAxis->Visible = false;
var_ValueAxis->set_ColorChart(TVariant(16119285));
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Axis = L"p";
var_Serie->Type = L"Line";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Exgraphlib_tlb::ISeriePtr var_Serie1 = var_Series->Add(TVariant("4458,3037,1018,2470,1784,1018,856"),TNoParam());
var_Serie1->Name = L"Area";
var_Serie1->Axis = L"a";
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
118
|
Adds multiple value-axes
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Exgraphlib_tlb::IValueAxesPtr var_ValueAxes = Graph1->ValueAxes;
var_ValueAxes->Add(TVariant("p"))->set_Start(TVariant(0.25));
Exgraphlib_tlb::IValueAxisPtr var_ValueAxis = var_ValueAxes->Add(TVariant("a"));
var_ValueAxis->set_End(TVariant(0.25));
var_ValueAxis->Visible = false;
var_ValueAxis->set_ColorChart(TVariant(16119285));
Exgraphlib_tlb::ICategoryAxisPtr var_CategoryAxis = Graph1->CategoryAxis;
var_CategoryAxis->set_Categories(TVariant("Asia,Africa,Europe,North America,Antarctica,South America,Australia/Oceania"));
var_CategoryAxis->MajorGridLines->set_Color(TVariant("lightgray"));
Exgraphlib_tlb::ISeriesPtr var_Series = Graph1->Series;
Exgraphlib_tlb::ISeriePtr var_Serie = var_Series->Add(TVariant("4600,1300,747,579,0,422,42"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Axis = L"p";
var_Serie->Type = L"Line";
var_Serie->set_Misc(Exgraphlib_tlb::SerieMiscEnum::exLineSize,TVariant(3));
Exgraphlib_tlb::ISeriePtr var_Serie1 = var_Series->Add(TVariant("4458,3037,1018,2470,1784,1018,856"),TNoParam());
var_Serie1->Name = L"Area";
var_Serie1->Axis = L"a";
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
117
|
Defines the foreground color to show the visible values within the control's legend
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exLegendLabel] = RGB(0,0,1);
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exLegendSymbol] = RGB(0,0,1);
Graph1->Series->Add(TVariant("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)"),TNoParam())->Name = L"Area";
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Visible = false;
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
116
|
Defines a different background color to show the visible values within the control's legend
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exLegendUnit] = RGB(240,240,240);
Graph1->Series->Add(TVariant("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)"),TNoParam())->Name = L"Area";
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Visible = false;
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
115
|
Defines a different background color to show the hidden values within the control's legend
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exLegendUnitHidden] = RGB(240,240,240);
Graph1->Series->Add(TVariant("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)"),TNoParam())->Name = L"Area";
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Visible = false;
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
114
|
Defines the foreground color to show the hidden values within the control's legend
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exLegendLabelHidden] = RGB(220,220,220);
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exLegendSymbolHidden] = RGB(220,220,220);
Graph1->Series->Add(TVariant("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)"),TNoParam())->Name = L"Area";
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Visible = false;
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
113
|
Hides a symbol or item of the legend by code
Graph1->BeginUpdate();
Graph1->AutoFit = true;
Graph1->Series->Add(TVariant("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)"),TNoParam())->Name = L"Area";
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TVariant("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)"),TNoParam());
var_Serie->Name = L"Population";
var_Serie->Visible = false;
Graph1->Legend->Visible = true;
Graph1->EndUpdate();
|
112
|
Defines the percentage of transparency for displaying tooltips on series
Graph1->BeginUpdate();
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exSerieCursorTooltipTransparent] = RGB(75,0,0);
Graph1->AutoFit = true;
Graph1->Series->Add(TVariant("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)"),TNoParam());
Graph1->Series->Add(TVariant("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)"),TNoParam());
Graph1->Cursor->Visible = true;
Graph1->EndUpdate();
|
111
|
Defines the percentage of transparency for displaying tooltips on axes
Graph1->BeginUpdate();
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exAxisCursorTooltipTransparent] = RGB(75,0,0);
Graph1->AutoFit = true;
Graph1->Series->Add(TVariant("Asia(4600), Africa(1300), Europe(747), North America(579), South America(431), Australia/Oceania(42)"),TNoParam());
Graph1->Series->Add(TVariant("Asia(4458), Africa(3037), North America(2470), South America(1784), Antarctica(1400), Europe(1018), Australia/Oceania(856)"),TNoParam());
Graph1->Cursor->Visible = true;
Graph1->EndUpdate();
|
110
|
Specifies the percent of transparency to show the overview-selection (0 indicates opaque, 50% indicates semi-transparent, and 100% indicates fully transparent)
Graph1->BeginUpdate();
Graph1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exOverviewSelTransparent] = RGB(75,0,0);
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"aapl";
var_Serie->set_Data(TVariant("AAPL (open),AAPL (high),AAPL (low),AAPL (close)"));
var_Serie->Type = L"candle";
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
109
|
Changes the color to show the overview's selection (EBN color)
Graph1->BeginUpdate();
Graph1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exOverviewSel] = 0x1000000;
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"aapl";
var_Serie->set_Data(TVariant("AAPL (open),AAPL (high),AAPL (low),AAPL (close)"));
var_Serie->Type = L"candle";
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
108
|
Changes the color to show the overview's selection (solid color)
Graph1->BeginUpdate();
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exOverviewSel] = 0x10000ff;
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"aapl";
var_Serie->set_Data(TVariant("AAPL (open),AAPL (high),AAPL (low),AAPL (close)"));
var_Serie->Type = L"candle";
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
107
|
Changes the color to show the overview's selection
Graph1->BeginUpdate();
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exOverviewSel] = RGB(255,0,0);
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"aapl";
var_Serie->set_Data(TVariant("AAPL (open),AAPL (high),AAPL (low),AAPL (close)"));
var_Serie->Type = L"candle";
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
106
|
Changes the overview's background
Graph1->BeginUpdate();
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exOverviewSelOut] = RGB(240,240,240);
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"aapl";
var_Serie->set_Data(TVariant("AAPL (open),AAPL (high),AAPL (low),AAPL (close)"));
var_Serie->Type = L"candle";
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
105
|
Specifies the visual-appearance to display the left/right parts outside of the overview-selection
Graph1->BeginUpdate();
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exOverviewSelOut] = RGB(240,240,240);
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"aapl";
var_Serie->set_Data(TVariant("AAPL (open),AAPL (high),AAPL (low),AAPL (close)"));
var_Serie->Type = L"candle";
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
104
|
Adds left/ resize-margins of the overview's selection to resize it (EBN)
Graph1->BeginUpdate();
Graph1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exOverviewSelResize] = 0x1000000;
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"aapl";
var_Serie->set_Data(TVariant("AAPL (open),AAPL (high),AAPL (low),AAPL (close)"));
var_Serie->Type = L"candle";
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
103
|
Adds left/ resize-margins of the overview's selection to resize it
Graph1->BeginUpdate();
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exOverviewSelResize] = RGB(1,0,0);
Graph1->ValueSize = 6;
Graph1->set_Data(TVariant("C:\\Program Files\\Exontrol\\ExGraph\\Sample\\Data/aapl.txt"));
Exgraphlib_tlb::ISeriePtr var_Serie = Graph1->Series->Add(TNoParam(),TNoParam());
var_Serie->Name = L"aapl";
var_Serie->set_Data(TVariant("AAPL (open),AAPL (high),AAPL (low),AAPL (close)"));
var_Serie->Type = L"candle";
Graph1->Overview->Visible = true;
Graph1->EndUpdate();
|
102
|
Changes the colors to show the value's tooltip
Graph1->BeginUpdate();
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exToolTipBackColor] = RGB(1,0,0);
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exToolTipForeColor] = RGB(255,255,255);
Graph1->AutoFit = true;
Graph1->Series->Add(TVariant("Pacific Ocean(16525), Atlantic Ocean(10646), Indian Ocean(7056), Southern Ocean(2033), Arctic Ocean(1406)"),TNoParam())->ShowValue = Exgraphlib_tlb::ShowValueEnum::exPoint;
Graph1->EndUpdate();
|
101
|
Changes the visual appearance of the borders of the tooltips
Graph1->BeginUpdate();
Graph1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Graph1->Background[Exgraphlib_tlb::BackgroundPartEnum::exToolTipAppearance] = 0x1000000;
Graph1->AutoFit = true;
Graph1->Series->Add(TVariant("Pacific Ocean(16525), Atlantic Ocean(10646), Indian Ocean(7056), Southern Ocean(2033), Arctic Ocean(1406)"),TNoParam())->ShowValue = Exgraphlib_tlb::ShowValueEnum::exPoint;
Graph1->EndUpdate();
|